import React from 'react'
import { useHistory } from 'umi'

function Center() {
  const history = useHistory();
  function quite() {
    localStorage.removeItem("token")
    history.push("/login")
  }
  return (
    <div style={{ width: "100%" }}>
      欢迎您：{localStorage.getItem("token")} !!!
      <br></br >
      <button onClick={quite}>退出</button>
    </div >
  )
}
Center.wrappers = ["@/wrappers/Auth"]
export default Center;
